package t3client;

import java.util.Scanner;

import t3invoke.Invoke;

public class Client {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		Invoke in=new Invoke();
		int n=0;
		while(true) {
			System.out.println("输入1停车");
			System.out.println("输入2取车");
			System.out.println("输入3查看所有停车位");
			System.out.println("输入4查看所有缴费记录");
			System.out.println("输入0退出");
			n=Integer.parseInt(sc.nextLine());
			switch(n) {
			case 1:
				in.parkCar(sc);
				break;
			case 2:
				in.getCar(sc);
				break;
			case 3:
				in.showParkingSpace();
				break;
			case 4:
				in.showMoney();
				break;
			}
			if(n==0) {
				break;
			}
		}
	}

}
